﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ModelBase.Wpf.cs" company="JDML Consulting Ltd.">
//   Copyright 2011 Photon Project - http://photon.codeplex.com
// </copyright>
// <summary>
//   Defines the ModelBase type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Photon.ComponentModel.Modelling
{
    public partial class ModelBase
    {
        /// <summary>
        /// Raises the errors changed event.
        /// </summary>
        partial void RaiseErrorsChanged(MetaModelProperty property)
        {
            // WPF current only supports IDataErrorInfo, so to indicate an error change we must raise a PropertyChanged event.
            SetPropertyChanged(property);
        }
    }
}
